Recently work contact to Sqlite3, so with blog record, of course only shallow use ha!Reference:http://www.runoob.com/sqlite/sqlite-tutorial.htmlConcept:SQLite is a software library that implements a self-contained, server-free, 0-configured,
First, why use SQLite3, what is SQLite3, the common database can be used for mobile side?1. There are several ways to persist storage:1. plist can only store data for Nsdictionary and Nsarray. 2, Preference preference setting nsuserdefaults, easy
Reprinted from: http://blog.csdn.net/ygsyyl/article/details/81444071, in the PC environment to start a simulator (not mobile)2. See if the simulator/systen/xbin has sqlite3 commandADB shellCd/system/xbinLs3. Copy the simulator/system/xbin/sqlite3
SQLite is an open-source, embedded relational database that implements a self-contained, 0 configuration, transactional SQL database engine. It is characterized by its high portability, ease of use, compact structure, high efficiency and reliability.
Sqlite3 command Overview
1. View sqllite version information:
2. Create a database
3. Exit sqlite command line:
Sqlite>. quit or sqlite>. exit command
4. List the configurations of the current display format
5. display the database table
1. View sqllite version information. 2. create a database. 3. exit the sqlite command line. run the sqlitequit or sqliteexit command. 4. list the currently displayed version. 5. display the database table structure. 6. view the table. 1. view
Common methods:
1. Using the Sqlite3_get_table function
2. Get SQLite to create the SQL statement string for the table, and then resolve to get to the appropriate field
3. Use the configuration file to write all field names to the configuration
The ALTER TABLE statement is used to add, modify, or delete a column's original table in an existing table:first, Alter adds a new column to the table
syntax:ALTER TABLE table_name ADD COLUMN_NAME datatype
Note : Alter in
This article describes how to use python to operate sqlite3 to open, delete, and modify a database. For more information, see
The code is as follows:
# Coding = UTF-8_ Auther _ = 'xianbao'Import sqlite3# Open a databaseDef opendata ():Conn =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.